$(document).ready(function()
{
    var picker_options =
    {
       dateFormat: 'yy-mm-dd',
       changeMonth: true,
       changeYear: true,
       showButtonPanel: false,
       showAnim: 'slideDown'
    };
    $("#date_picker").datepicker(picker_options);
});


function save_data(msg,url,form_name)
{
        $("#"+msg).html("<div class='error'>Saving, Please wait...</div>");
        $.ajax({
                url: url,
                type: "POST",
                data:$("#"+form_name).serialize(),
                success: function(obj)
                        {
                                $("#"+msg).html(obj);      
                        }
                });
}